package com.zgh.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID=7L;
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private String account;
    private String password;
    @TableField("headPortrait")
    private String headPortrait;
    private int level;
    private int sex;
    private int age;
    private String phone;
    private String nation;
    private String profile;
    private String area;
    private String nickname;
    private int credibility;
    @TableField("openid")
    private String openid;
}
